cmake_minimum_required(VERSION 3.0.0)
project(Demo1 VERSION 0.1.0)

# 使用 C++ 11 标准
#set(CMAKE_CXX_STANDARD 11)

#set(GLAD_H ${PROJECT_SOURCE_DIR}/include)
#set(GLFW_H "D:/ProgramData/opengl/include")
set(DEP_H ${PROJECT_SOURCE_DIR}/include)
set(UTIL_H ${PROJECT_SOURCE_DIR}/util/include)
include_directories(${DEP_H} ${UTIL_H})

#LINK_DIRECTORIES("D:/ProgramData/opengl/lib")
LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/lib)
LINK_LIBRARIES(glfw3 opengl32)

aux_source_directory(${PROJECT_SOURCE_DIR} DIR_MAIN_SRCS)
aux_source_directory(${PROJECT_SOURCE_DIR}/util/include DIR_UTIL_H)
aux_source_directory(${PROJECT_SOURCE_DIR}/util/src DIR_UTIL_SRC)

add_executable(Demo1 ${DIR_MAIN_SRCS} ${DIR_UTIL_H} ${DIR_UTIL_SRC})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
